import { request } from "../utils/request";

export const fetchDrone2sByPage = (data) => {
    return request.post('/api/drone2/listPage', data)
  }

  export const uploadDrones = (data) => {
  return request.post('/api/drone2/saveBatch', data)
}

export const updateDrone = (data) => {
  return request.post('/api/drone2/update',data)
}

export const deleteDrone = (id) => {
  return request.post(`/api/drone2/delete/${id}`,id)
}

export const createDroneCount = (data) => {
  return request.post('/api/create', data)
}
  